package stocks.server;
import java.rmi.*;

public interface CallBack extends Remote
{
	/*
	 * Triggered when stock is sold
	 */
	public void transactionCompleteSold(String message) throws RemoteException;
	/*
	 * Triggered when stock is bought
	 */
	public void transactionCompleteBuy(String message) throws RemoteException;
	/*
	 * Triggered when a transaction fails.
	 */
	public void transactionFailed(String message) throws RemoteException;
	/*
	 * Login success trigger
	 */
	public void loginSucsess(String message) throws RemoteException;
	public void joinedMessage(String from) throws RemoteException;
	/*
	 * Get client name
	 */
	public String getName() throws RemoteException;
	/*
	 * Send a arbitary message
	 */
	public void showMessage(String msg) throws java.rmi.RemoteException;
}  

